<?php include("ListResult.php");?><html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="content-type">
<title> <?php print $_strAdminProgram["Title"];?> (List) </title>
<script language="JavaScript" src="/inc/admin_envirset.js"></script>
<link rel="stylesheet" href="/css/backend.css" type="text/css">
</head>

<script language="JavaScript">
<!--
strRowClassName = "clef";

	function Del(intID){
		with(document.DelForm){
			if(confirm("<?php print $_strAdminProgram["_SureDel"];?>")){  //您確定要刪除這筆資料！！
				ID.value = intID;
				submit();
			}
		}
	}
	function Edit(intID){
		with(document.EditForm){
				ID.value = intID;
				submit();
		}
	}
	function View(intID){
		with(document.ViewForm){
				ID.value = intID;
				submit();
		}
	}
	function Page(intPage){
		with(document.ListForm){
				Page.value = intPage;
				submit();
		}
	}
	function ChangePage(){
		with(document.ListForm){
				Page.value = document.PageJump.pageview.value;
				submit();
		}
	}
//-->
</script>
</head>

<body class="MyBody">
<table class="MyTable" cellspacing="1" cellpadding="0" style="width: 1000px;">
  <tr>
	<td colspan="16" class="MyUp">
		<table width="100%" cellspacing="0" cellpadding="0" border="0">
			<tr>
				<td align="left" class="MyUp_Title"><?php print $_strAdminProgram["Title"];?> (List) </td>
				<td align="right" class="MyUp_Title"><?php include("ListPage.php");?></td>
			</tr>
		</table>
	</td>
  </tr>
  <tr>
    <td class="MyTitleL" align="center" style="width: 35px;" rowspan="2"><?php print $_strAdminProgram["_View"];?><!--瀏覽//--></td>
    <td class="MyTitleL" align="center" style="width: 35px;" rowspan="2"><?php print $_strAdminProgram["_Edit"];?><!--編輯//--></td>
    <td class="MyTitleL" align="center" style="width: 35px;" rowspan="2"><?php print $_strAdminProgram["_Del"];?><!--刪除//--></td>
    <td class="MyTitleL" align="center" style="width: 35px;" rowspan="2"><?php print $_strAdminProgram["ID"];?></td>
	<td class="MyTitleL" align="center" style="width: 35px;" rowspan="2">管理</td>
	<td class="MyTitleL" align="center" style="width: 35px;" rowspan="2">會員</td>
	<td class="MyTitleL" align="center" style="width: 70px;" rowspan="2">Domain</td>
    <td class="MyTitleL" align="center" style="width: 50px;" rowspan="2">Name</td>
	<td class="MyTitleL" align="center" style="width: 70px;" rowspan="2">DB</td>
	<td class="MyTitleL" align="center" style="width: 70px;" rowspan="2">對應目錄</td>
	<td class="MyTitleL" align="center" style="width: 50px;" rowspan="2">级别</td>
	<td class="MyTitleL" align="center" colspan="3">SLB1</td>
	<td class="MyTitleL" align="center" colspan="3">SLB2</td>
  </tr>
  <tr>
	<td class="MyTitleL" align="center" style="width: 80px;">IP</td>
	<td class="MyTitleL" align="center" style="width: 100px;">Server</td>
	<td class="MyTitleL" align="center" style="width: 50px;">Port</td>
	<td class="MyTitleL" align="center" style="width: 80px;">IP</td>
	<td class="MyTitleL" align="center" style="width: 100px;">Server</td>
	<td class="MyTitleL" align="center" style="width: 50px;">Port</td>
  </tr>
		<?php
			$strSQL = $strSQL." order by ID desc limit ".(($intPageNow-1)*$intPageNo).",".$intPageNo." ";
			print "<!--".$strSQL."//-->";

			if($RS = @PMA_mysql_query($strSQL, $$_Conn)){
				if(PMA_mysql_num_rows($RS) > 0){
					while($Rows = PMA_mysql_fetch_object($RS)){
						?>
  <tr class="clef">
    <td class="MyCellL" align="center"><a href="JavaScript:View(<?php print $Rows -> ID;?>)"><?php print $_strAdminProgram["_View"];?><!--瀏覽//--></a></td>
    <td class="MyCellL" align="center"><a href="JavaScript:Edit(<?php print $Rows -> ID;?>)"><?php print $_strAdminProgram["_Edit"];?><!--編輯//--></a></td>
    <td class="MyCellL" align="center"><a href="JavaScript:Del(<?php print $Rows -> ID;?>)"><?php print $_strAdminProgram["_Del"];?><!--刪除//--></a></td>
    <td class="MyCellL" align="center"><?php print $Rows -> ID;?></td>
	<td class="MyCellL"><a href="http://admin.<?php print $Rows -> Domain;?>" target="_blank">管理</a></td>
	<td class="MyCellL"><a href="http://www.<?php print $Rows -> Domain;?>" target="_blank">會員</a></td>
	<td class="MyCellL"><?php print $Rows -> Domain;?></td>
    <td class="MyCellL"><?php print $Rows -> Name;?></td>
	<td class="MyCellL"><?php print $Rows -> DB;?></td>
	<td class="MyCellL"><?php print $Rows -> DirName;?></td>
	<td class="MyCellL" style="background-color: <?php print $arrWebClassBGColor[$Rows -> WebClass]?>"><?php print $arrWebClass[$Rows -> WebClass];?></td>
	<td class="MyCellL"><?php print $Rows -> SLB1IP;?></td>
	<td class="MyCellL"><?php print $Rows -> SLB1Server;?></td>
	<td class="MyCellL"><?php print $Rows -> SLB1Port;?></td>
	<td class="MyCellL"><?php print $Rows -> SLB2IP;?></td>
	<td class="MyCellL"><?php print $Rows -> SLB2Server;?></td>
	<td class="MyCellL"><?php print $Rows -> SLB2Port;?></td>
  </tr>
						<?php
					}
				}
				@mysql_free_result($RS);
			}
		?>

  <tr>
	<td colspan="17" class="MyButtonL"><?php include("BottomListPage.php");?></td>
  </tr>
</table>

<form method="Post" Action="index.php" name="DelForm">
	<input type="hidden" name="op" value="Del">
	<input type="hidden" name="ID" value="">
	<input type="hidden" name="Page" value="<?php print $intPageNow;?>">
</form>

<form method="Post" Action="index.php" name="EditForm">
	<input type="hidden" name="op" value="Edit">
	<input type="hidden" name="ID" value="">
	<input type="hidden" name="Page" value="<?php print $intPageNow;?>">
</form>

<form method="Post" Action="index.php" name="ListForm">
	<input type="hidden" name="op" value="List">
	<input type="hidden" name="totalpage" value="<?php print $intTotalPage;?>">
	<input type="hidden" name="Page" value="<?php print $intPageNow;?>">
</form>

<form method="Post" Action="index.php" name="ViewForm">
	<input type="hidden" name="op" value="View">
	<input type="hidden" name="ID" value="">
	<input type="hidden" name="Page" value="<?php print $intPageNow;?>">
</form>

</body>
</html>